from base.search_base import SearchBase
from appium.webdriver.common.appiumby import AppiumBy
from selenium.webdriver import Remote

from base.shopcart_base import ShopcartBase


class ShopcartPage(ShopcartBase):
    def shopcart_button_click(self,driver:Remote):
        Shopcart_button_xpath=self.Shopcart_button()
        return self.click_new(driver,AppiumBy.XPATH,Shopcart_button_xpath)
    def bookname_button_click(self,driver:Remote):
        bookname_button_xpath=self.bookname_button()
        return self.click_new(driver,AppiumBy.XPATH,bookname_button_xpath)
    def sure_button_click(self,driver:Remote):
        sure_button_click_xpath=self.sure_button()
        return self.click_new(driver,AppiumBy.XPATH,sure_button_click_xpath)
